<#if (actionMessages?exists && actionMessages?size > 0)>
<script type="text/javascript">
(function(){
	var msg = '';
	<#list actionMessages as message>
		msg += '${message}';
		<#if message_has_next>
		msg += '<br />';
		</#if>
	</#list>
	dialog(msg,true);
})();
</script>
</#if>